<!DOCTYPE html>
<html lang="zh-Hans">

<head>
    <meta charset="utf-8">
    <title>JS/jQuery图片查看器viewer.js演示-默认效果_viewer</title>
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/viewerjs/1.7.1/viewer.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        #viewer {
            width: 700px;
            margin: 0 auto;
            font-size: 0;
        }

        #viewer li {
            display: inline-block;
            width: 32%;
            margin-left: 1%;
            padding-top: 1%;
        }

        #viewer li img {
            width: 100%;
        }
    </style>
</head>

<body>

    <ul id="viewer">
        <li><img data-original="https://www.jq22.com/demo/jQueryViewer20160329/img/thumbnails/tibet-1.jpg" src="https://www.jq22.com/demo/jQueryViewer20160329/img/thumbnails/tibet-1.jpg" alt="图片1"></li>
        <li><img data-original="https://www.jq22.com/demo/jQueryViewer20160329/img/thumbnails/tibet-1.jpg" src="https://www.jq22.com/demo/jQueryViewer20160329/img/thumbnails/tibet-1.jpg" alt="图片2"></li>
        <li><img data-original="https://www.jq22.com/demo/jQueryViewer20160329/img/thumbnails/tibet-1.jpg" src="https://www.jq22.com/demo/jQueryViewer20160329/img/thumbnails/tibet-1.jpg" alt="图片3"></li>
        <li><img data-original="https://www.jq22.com/demo/jQueryViewer20160329/img/thumbnails/tibet-1.jpg" src="https://www.jq22.com/demo/jQueryViewer20160329/img/thumbnails/tibet-1.jpg" alt="图片4"></li>
        <li><img data-original="https://www.jq22.com/demo/jQueryViewer20160329/img/thumbnails/tibet-1.jpg" src="https://www.jq22.com/demo/jQueryViewer20160329/img/thumbnails/tibet-1.jpg" alt="图片5"></li>
        <li><img data-original="https://www.jq22.com/demo/jQueryViewer20160329/img/thumbnails/tibet-1.jpg" src="https://www.jq22.com/demo/jQueryViewer20160329/img/thumbnails/tibet-1.jpg" alt="图片6"></li>
    </ul>
    

    <script src="https://cdn.bootcdn.net/ajax/libs/viewerjs/1.7.1/viewer.min.js"></script>
    <script>
        var viewer = new Viewer(document.getElementById('viewer'), {
            url: 'data-original'
        });
    </script>

  
</body>

</html>